import React, { useEffect ,useRef} from "react";
import styled from 'styled-components'
import {Spin} from 'antd';
import { observer } from 'mobx-react';
import {start} from 'qiankun';
import microData from "../../store/micro-data";

const SubAppContainer: React.FC = () => {
    useEffect(()=>{
        microData.updateLoading(true);
        start();
    },[])
    
    return (
        <Spin spinning={microData.microLoading} style={{paddingTop: '120px',width:'100%'}}></Spin>
    );
}

export default observer(SubAppContainer);

const PageTag = styled.div`
    padding: 20px;
` 